body {
    margin: 0;
    padding: 0;
}

/* 覆盖 Pear Layui 的布局样式，并使用绝对定位 */
.layui-container {
    min-height: 100vh; /* 至少占据整个屏幕的高度 */
    padding: 20px; /* 添加内边距，如果需要 */
    background-color: #f5f7fa; /* 背景色 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* 包含 padding 和 border */
}

.layui-card {
    width: 100%; /* 让卡片铺满容器 */
    margin-bottom: 15px; /* 卡片间距 */
}

/* Flexbox 布局示例 */
.layui-card-body {
    display: flex;
    flex-direction: column; /* 垂直排列 */
}

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
}

/* 媒体查询示例 */
@media (max-width: 768px) {
    .layui-container {
        padding: 10px;
    }

    .layui-card {
        padding: 10px;
    }

    .layui-card-body {
        padding: 10px;
    }
}


.payment-container {
    padding: 0;
    background: #fff;
    border-radius: 12px;
}
.payment-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.payment-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin: 0;
}
.payment-close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: color 0.3s;
}
.payment-close:hover {
    color: #666;
}
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 25px;
}
.payment-item {
    position: relative;
    padding: 20px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}
.payment-item:hover {
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.payment-item.active {
    border-color: #1890ff;
    background: #f0f9ff;
}
.payment-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
.payment-name {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}
.payment-check {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 20px;
    height: 20px;
    background: #1890ff;
    border-radius: 0 8px 0 8px;
    display: none;
    align-items: center;
    justify-content: center;
}
.payment-check i {
    color: #fff;
    font-size: 12px;
}
.payment-item.active .payment-check {
    display: flex;
}
.payment-footer {
    padding: 0 25px 25px;
}
.payment-submit {
    width: 100%;
    height: 45px;
    background: #1890ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-submit:hover {
    background: #40a9ff;
    box-shadow: 0 4px 12px rgba(24,144,255,0.4);
}